package com.zrar.ak.gkpt.dao;

import com.zrar.ak.gkpt.model.bo.BusinessContractManageBO;
import lombok.Data;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.List;
import java.util.Map;

/**
 * @InterfaceName: IBusinessContractManageDao
 * @Description: 合同管理表Dao层
 * @Author: CaoTao
 * @Create: 2020/04/03
 */
@Repository("businessContractManage")
public interface IBusinessContractManageDao extends Mapper<BusinessContractManageBO> {

    BusinessContractManageBO queryContractByUnitName(String unitName);

    /**
     * 根据主键id删除合同信息
     * @param id
     * @return
     */
    int deleteOntractById(String id);

    Integer queryContractInfoShowNum(Map map);

    List<BusinessContractManageBO> pagingQueryContractInfoList(Map map);
}
